import request from "@/utils/request";

// 查询排班分类列表
export function listpause(query) {
  return request({
    url: "/system/pause/list",
    method: "get",
    params: query,
  });
}

// 查询排班分类详细
export function getpause(id) {
  return request({
    url: "/system/pause/" + id,
    method: "get",
  });
}

// 新增排班分类
export function addpause(data) {
  return request({
    url: "/system/pause",
    method: "post",
    data: data,
  });
}

// 修改排班分类
export function updatepause(data) {
  return request({
    url: "/system/pause",
    method: "put",
    data: data,
  });
}
// 不通过
export function putEdit(data) {
  return request({
    url: "/system/pause/putEdit",
    method: "put",
    data: data,
  });
}

// 删除排班分类
export function delpause(id) {
  return request({
    url: "/system/pause/" + id,
    method: "delete",
  });
}

// 查询区域分类列表
export function listregionList(query) {
  return request({
    url: "/system/region/list",
    method: "get",
    params: { ...query, pageSize: 10000 },
  });
}
export function listMemberRegion(query) {
  return request({
    url: "/system/region/addList",
    method: "get",
    params: query,
  });
}
export function listMemberStore(query) {
  return request({
    url: "/system/store/pullDown",
    method: "get",
    params: query,
  });
}
